gdk: handle implicit touch grabs
authorCarlos Garnacho <carlosg@gnome.org>
Wed, 28 Dec 2011 23:06:45 +0000 (00:06 +0100)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 1 Mar 2012 21:25:25 +0000 (16:25 -0500)
commitc72a77b04c76b8f28e7680f4acd7a3ca7ec9845c
tree25d1e00499ca917cf8ef4159de63e4c2d302df2e
parentb5cfdf2db4c4e1bd92d18943fa7471c4fbd85bd3
gdk: handle implicit touch grabs

If the touch sequence happens on a window with GDK_TOUCH_MASK set,
a GdkTouchGrabInfo is created to back it up. Else a device grab is
only created if the sequence emulates the pointer.

If both a device and a touch grab are present on a window, the later
of them both is obeyed, Any grab on the device happening after a
touch grab generates grab-broken on all the windows an implicit
touch grab was going on.
gdk/gdkdisplay.c
gdk/gdkwindow.c
gtk/gtkmain.c